package com.arpa.ntocc.common.security.annotation;

import java.lang.annotation.*;

/**
 * 角色注解
 * @Author liuyj
 * @Date 2019-11-07 16:49:02
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface NeedRole {
    /**
     * 角色字符串数组
     */
    String[] value();

    /**
     * 逻辑方式
     * @return
     */
    Logical logical() default Logical.OR;
}
